package com.ruoyi;

import java.util.ArrayList;
import java.util.List;

/**
 * 用于开发测试
 */
public class Test {
    public static void main(String[] args) {
        //测试枚举
        RequestType.printAll();
        //测试List
        List<String>strings=new ArrayList<>();
        unsafeAddList(strings,"qqq");
        String string = strings.get(0);
        System.out.println(string);
    }
    static void unsafeAddList(List list,Object o){
        list.add(o);
    }
    enum RequestType{
        NIL,POST,ADD;
        static void printAll(){
            for (RequestType value : values()) {
                String name = value.name();
                int ordinal = value.ordinal();
                System.out.println(name+":"+ordinal);
            }
        }
    }
}
